﻿namespace 接口学习
{
    internal class Program
    {
        static void Main(string[] args)
        {
            IAnimal animal = new Cat();
            animal.Eat();
            animal.Sport();
            IAnimal animal2 = new Dog();
            animal2.Eat();
            animal2.Sport();

            IAnimal animal1 = animal2 as Cat;
            //animal2.Say();
        }
    }
}